package com.ftg.youx.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ftg.youx.entity.OrdPurchaseDetail;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 订单封装
 *
 * @author 布衣
 */
@Data
public class OrdDto implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 进货人
     */
    private Integer empId;

    /**
     * 进货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 进货总价
     */
    private BigDecimal totalPrice;

    /**
     * 订单描述
     */
    private String info;


    List<OrdPurchaseDetail> details;

}
